package com.java.control.impl;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.java.control.AuthorizationCredit;

public class LoginoutController extends AbstractController {

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,HttpServletResponse response) throws Exception {
		this.authorizationCredit.loginout(request);
		this.authorizationCredit.redirectSigninValidateFailView(request, response);
		return null;
	}
	
	private AuthorizationCredit authorizationCredit;
	public void setAuthorizationCredit(AuthorizationCredit authorizationCredit) {
		this.authorizationCredit = authorizationCredit;
	}


}
